<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date du passé
?>
<?php
if (!isset($noredirect)) {
    if (!isset($_SESSION['authentificated']) OR !$_SESSION['authentificated']) {
        header('Location: logout.php?unauthorised');
    }
}
require_once('../src/define.inc.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="fr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml">
<head>
     <title>Administration du site MACI Immobilier</title>
     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     <link href="<?php echo URL ?>css/generic.css" type="text/css" rel="stylesheet" />
     <link href="<?php echo URL ?>css/backend.css" type="text/css" rel="stylesheet" />
     <script src="<?php echo URL ?>js/functions.js" type="text/javascript"></script>
	 <link rel="shortcut icon" href="/img/favicon-maci.ico" />
</head>

<body>
<div id="header">Administration du site <a href="<?php echo URL.'accueil' ?>">maci-immobilier</a></div>
<?php if (!isset($noredirect)) { ?>
<div id="menu">
	<?php $home=false; require_once('admin_menu.php'); ?>
	<p id="logout"><a href="logout.php">déconnexion</a></p>
</div>
<?php } // no redirect ?>
<div id="page">